<template>
  <el-container>
    <el-header>
      <Header/>
    </el-header>
    <el-container>
      <el-aside :width="this.$store.state.home.isCollapse ? 'auto' : '230px'">
        <Aside/>
      </el-aside>
      <el-main>
        <keep-alive include="Setting">
          <router-view/>
        </keep-alive>
        <Footer/>
        <el-backtop target=".el-container .el-main"/>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Header from './Header'
import Aside from './Aside'
import Footer from './Footer'

export default {
  name: "Home",
  components: {Header, Aside, Footer}
};
</script>

<style scoped>
.el-container {
  height: 100%;
}

.el-header {
  padding: 0 !important;
  height: 70px !important;
}

.el-aside {
  height: calc(100vh - 70px);
}

.el-main {
  height: calc(100vh - 70px);
}
</style>
